﻿@{
    ViewBag.Title = "管理员信息添加";
    ViewBag.MIndex = 2;
    ViewBag.CIndex = 2;
    ViewBag.BodyTitle = "管理员信息数据添加";
    Layout = "~/Views/Shared/_LayoutEditor.cshtml";
}
@section Functions{
    <li><input class="button" type="button" value="保 存" onclick="dataSave();" /></li>
    <li><input class="button" type="button" value="取 消" onclick="GotoHref('/User/List/1');" /></li>
}
@Html.AntiForgeryToken()
<div class="notification information">
    <a href="javascript:void(0);" class="close"><img src="/images/icons/cross_grey_small.png" title="关闭提示" alt="关闭提示" /></a>
    <div id="tab-content-tips">
        <b>请根据提示信息输入相应数据。</b>
    </div>
</div>
<div class="field-item">
    <label>隶属部门：</label>
    @Html.DropDownList("sltDepart", DepartHandler.GetSelectList(1), new { @class="percent25" })
    <span class="color-red padding-top-3">*</span>
    <span id="icoDepart" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoDepart" class="color-blue"></span>
</div>
<div class="field-item">
    <label>管理级别：</label>
    @Html.DropDownList("ddlGrade", UserHandler.GetSelectList(1), new { @class="percent25" })
    <span class="color-red padding-top-3">*</span>
    <span id="icoGrade" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoGrade" class="color-blue"></span>
</div>
<div class="field-item">
    <label>管理员姓名：</label>
    @Html.TextBox("txtSurname", null, new { @class = "input-text percent25", maxlength = "10" })
    <span class="color-red padding-top-3">*</span>
    <span id="icoSurname" class="margin-left-1em"></span>    
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoSurname" class="color-blue"></span>
</div>
<div class="field-item">
    <label>账号名称：</label>
    @Html.TextBox("txtName", null, new { @class = "input-text percent25", maxlength = "16" })
    <span id="icoName" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoName" class="color-blue"></span>
</div>
<div class="field-item">
    <label>账号密码：</label>
    @Html.Password("txtPwd", null, new { @class = "input-text percent25", maxlength = "16" })
    <span id="icoPwd" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoPwd" class="color-blue"></span>
</div>
<div class="field-item">
    <label>密码强度：</label>
    <span id="security-level" class="security-level0"></span>
</div>
<div class="field-item">
    <label>确认密码：</label>
    @Html.Password("txtPwds", null, new { @class = "input-text percent25", maxlength = "16" })
    <span id="icoPwds" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoPwds" class="color-blue"></span>
</div>
<div class="field-item">
    <label>手机号码：</label>
    @Html.TextBox("txtMobile", null, new { @class = "input-text percent25", maxlength = "15" })
    <span id="icoMobile" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoMobile" class="color-blue"></span>
</div>
<div class="field-item">
    <label>电子邮箱：</label>
    @Html.TextBox("txtEmail", null, new { @class = "input-text percent25", maxlength = "50" })
    <span id="icoEmail" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoEmail" class="color-blue"></span>
</div>
<div class="field-item">
    <label>管理员描述：</label>
    @Html.TextArea("txtDesc", new { @class = "input-text percent50", maxlength = "300" })
    <span id="icoDesc" class="margin-left-1em"></span>
</div>
<div class="field-memo">
    <label>&nbsp;</label>
    <span id="infoDesc" class="color-blue"></span>
</div>
<div class="field-item">&nbsp;</div>
@section Scripts{
    <script src="@Scripts.Url("~/Scripts/user/add.js")" type="text/javascript"></script>
}